package com.lw.question15;


import java.util.Scanner;

public class task2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String arr = scanner.nextLine();
        int a = 0;	//用于统计  数字个数
        char[] c1 = arr.toCharArray();
        for (int i = 0; i < c1.length; i++) {
            if (c1[i] >= '0' && c1[i] <= '9') {
                a++;
            }
        }
//        输出其中的数字的个数
        System.out.println(a);
    }
}
